package com.zhiwang.planet.mvvm.model.entity

import androidx.room.*


@Entity(tableName = "game_search")
data class SearchRecord(
        @PrimaryKey
        var name: String,
        var url: String)


@Dao
interface SearchDao {

    @Query("delete from game_search")
    fun deleteAll()

    @Insert
    fun add(r: SearchRecord)

    @Delete
    fun delete(r: SearchRecord)

}